\rcube_message_header_sorter

Class for sorting an array of rcube_message_header objects in a predetermined order.

Summary

Methods
Properties
Constants
set_index()
sort_headers()
compare_uids()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$uids
N/A

Properties

$uids

$uids : array

Type

array — Message UIDs

Methods

set_index()

set_index(array  $index) : mixed

Set the predetermined sort order.

Parameters

array $index

Numerically indexed array of IMAP UIDs

Returns

mixed —

sort_headers()

sort_headers(array  $headers) : mixed

Sort the array of header objects

Parameters

array $headers

Array of rcube_message_header objects indexed by UID

Returns

mixed —

compare_uids()

compare_uids(int  $a, int  $b) : mixed

Sort method called by uksort()

Parameters

int $a

Array key (UID)

int $b

Array key (UID)

Returns

mixed —